import request from '@/utils/request'

// 获取实时监控数据
export function getRealtimeData() {
  return request({
    url: '/api/v1/detection/statistics/realtime/',
    method: 'get'
  })
}

// 获取视频检测数据
export function getVideoData() {
  return request({
    url: '/api/v1/detection/statistics/video/',
    method: 'get'
  })
} 

// 获取某天实时检测数据
export function getDayRealtimeData(date) {
  return request({
    url: `/api/v1/detection/statistics/realtime/day/${date}/`,
    method: 'get'
  })
}

// 获取某天视频检测数据
export function getDayVideoData(date) {
  return request({
    url: `/api/v1/detection/statistics/video/day/${date}/`,
    method: 'get'
  })
}